<template>
  <div>
      <h2>父组件部分</h2>
   <Hi1 v-bind:msg="pathermessage" v-on:listenToChildEvent='showMsgFromChild'></Hi1>
  </div>
</template>
<script>
import Hi1 from './Hi1'
export default {
    data(){
        return{
            pathermessage:'I am father'
        }
    },
 methods:{
showMsgFromChild:function(data){
    console.log(data)
}
 },
 components:{
     Hi1
 }
 
}
</script>
